<?php
/*
 *
 * BEGIN livematch.php
 *
 *
 * Dazzler - live match template for site
 * @Description: live match screen for web. This is the live match layout
 * @Authors: Salman Noor, Wits University
 * @Copyright: © Wits University 2011 - All Rights Reserved
 * @License: BSD License (http://www.linfo.org/bsdlicense.html)
 *
 *
 * BEGIN CHANGELOG
 * Developers working on thee files are REQUIRED to maintain this CHANGELOG.
 * Please ensure you follow the Changelog Guidelines: http://code.google.com/p/dazzler/wiki/DazzlerDevelopGuideline?ts=1315476570&updated=DazzlerDevelopGuideline
 * !==================================================================================================================================================================
 *
 * VERSION 1.0.0
 * 	+ Created, Salman, 7 September 2011
 * 	+ Added neater comment blocks, Salman, 11 October 2011
 *      + Added new template for new stylesheet
 *
 * ==================================================================================================================================================================!
 * END CHANGELOG
 */


/* * *****************************************************************************************************************************************************************
 *
 * BEGIN Direct Call Check
 *
  /***************************************************************************************************************************************************************** */
global $doNotCallThisScriptDirectly;
if ($doNotCallThisScriptDirectly != 1) {
    /* Read the ini language file */
    $ini_lang_array = array();
    $clientlang = explode(",", strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']));
    $lang_ini_array = (file_exists("lang/" . trim($clientlang[0]) . ".ini")) ? parse_ini_file("lang/" . trim($clientlang[0]) . ".ini", true) : parse_ini_file("lang/en.ini", true);
    die($lang_ini_array['ERRORS']['doNotCallThisScriptDirectly']);
}
/* * *****************************************************************************************************************************************************************
 *
 * END Direct Call Check
 *
  /***************************************************************************************************************************************************************** */
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <link rel="icon"
      type="image/png"
      href=<?php echo "$rootpath/themes/$loadType/global/images/favicon.png" ?> />
        <title>Dazzler - Live Cricket Scores</title>

<?php
echo $css_head;
echo $js_head;


?>
<!--		<script type="text/javascript">
			jQuery(document).ready(function($) {
				$(".cornerpeel").hover(function() { //Hover Over
					$(".cornerpeel img , .message").stop()
					.animate({ //Expand the Message and the Hover Image
						width: '188px',
						height: '188px',
							opacity: 1
					}, 600);
				} , function() {
					$(".cornerpeel img").stop() //Hover Out Go Back To Original
					.animate({
						width: '50px',
						height: '50px'
					}, 200);
					$(".message").stop() //Hover Out Go Back To Original
					.animate({
						width: '50px',
						height: '50px',
						opacity: 0
					}, 180); //This should be a tad faster than the image because IE is known to glitch
				});
			});
		</script>
		<style type="text/css">
			.cornerpeel {position: relative;}
			.cornerpeel img {
				width: 50px;
				height: 50px;
				z-index: 101;
				position: absolute;
				right: 0;
				top: 0;
			}
			.cornerpeel .message {
				width: 50px;
				height: 50px;
				position: absolute;
				z-index: 100;
				right: 0;
				top: 0;

			}
		</style>-->
<!--        <script src="http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js"></script>-->
    </head>

    <body>

<!--		<div class="cornerpeel">
			<a href="http://feeds.feedburner.com/ShaneStrong">
<span class="message">Subscribe To My Feed dwqdqwdw</span>
<img src="<?php //echo "$cornerImage" ?>" />
			

			</a>

		</div>-->
       <div id="pageheader">
<?php
echo $hiddenInput->output();
echo $hiddenAwayTeamInput->output();
echo $hiddenHomeTeamInput->output();
echo $hiddenLoadingImage;
?>
		</div>
      
		<div id="pagebody">
			<div id="scoreboardcontainer">
				<div id="scorebannercontainer">
					<div id="scorecontainer">
						<div id="matchScore">SA (1st Inn) 425/0, 65.4 overs. run rate: 6.5</div>
						<div id="matchInfo"><?php echo $MatchDescription;  ?></div>
						<div id="stadiumInfo"><?php echo $GameVenue; ?></div>
					</div>
					<div id="hometeam" class="<?php echo "$homeTeamLogo"; ?>">

					</div>
   
					<div id="awayteam" class="<?php echo "$awayTeamLogo"; ?>" >

					</div>
					<div class="commentaryticker">
						<marquee behavior="scroll" direction="left" scrollamount="1" id="ticker"><span id="tape">AB de Villiers (205*) pulls square on the leg side for another 4...</span></marquee>
					</div>
				</div>
			</div>
			<div style='clear: both; display: block;'>&nbsp;</div>
			<div id="tabs">
				<ul>
					<li><a href="#tab-scorecard">Full Scorecard</a></li>
					<li><a href="#tab-matchstats">Match Stats</a></li>
					<li><a href="#tab-fanzone">Fanzone</a></li>
					<li><a href="#tab-liveview">Live View</a></li>
				</ul>
			<div id="tab-scorecard">
                            <?php
                            echo $ScoreCardContent;
                            ?>

			</div>
                            <div id="tab-matchstats" >

     <?php
                                echo $MatchStatsContent;
                                ?>

                                				<span id="wagonview">
					wagonview canvas
					<canvas></canvas>
				</span>
				<span id="wagondash">
					<span class="overinfo">
						<span class="ballcommentary">Venkatesh bowls an inswinger full of a length, AB de Viliers plays forward defensive, no run.</span>
						<span class="thisover">This over:<span>4 2 4 0</span></span>
					</span>
					<span class="playerinfo">
						<span class="batting">
							<span class="subtitle">Batsmen</span>
							<span class="batsmanA">Graham Smith</span>
							<span class="batsmanA_score">201</span>,
							<span class="batsmanB">AB de Villiers*</span>
							<span class="batsmanB_score">205</span>
						</span>
						<span class="fielding">
							<span class="subtitle">Bowler</span>
							<span class="bowlerA">Venkatesh</span>
							<span class="bowlerA_score">0/127 (24.2 overs)</span>
							<span class="bowlerA">Kahn</span>
							<span class="bowlerA_score">0/98 (20 overs)</span>
						</span>
					</span>
				</span>
                            </div>
			<div id="tab-fanzone" >
				<ul id="comments">
					<li>
						<span class="comment">
							<span class="comment-author"><img src="gravatar.gif" /><a href="/">Author</a></span>
							<span class="comment-body">
								<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
								</p>
							</span>
						</span>
						<ul class="children">
							<li>
								<span class="comment">
									<span class="comment-author"><img src="gravatar.gif" /><a href="/">Author</a></span>
									<span class="comment-body">
										<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
										</p>
									</span>
								</span>
								<ul class="children">
									<li>
										<div class="comment">
											<span class="comment-author"><img src="gravatar.gif" /><a href="/">Author</a></span>
											<span class="comment-body">
												<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
												</p>
											</span>
										</span>
									</li>
								</ul>
							</li>
						</ul>
					</li>
				</ul>
			</div>
			<div id="tab-liveview">
                            <?php

                            echo $liveViewContent;

                            ?>
				<span id="wagonview">
					wagonview canvas
					<canvas></canvas>
				</span>
				<span id="wagondash">
					<span class="overinfo">
						<span class="ballcommentary">Venkatesh bowls an inswinger full of a length, AB de Viliers plays forward defensive, no run.</span>
						<span class="thisover">This over:<span>4 2 4 0</span></span>
					</span>
					<span class="playerinfo">
						<span class="batting">
							<span class="subtitle">Batsmen</span>
							<span class="batsmanA">Graham Smith</span>
							<span class="batsmanA_score">201</span>,
							<span class="batsmanB">AB de Villiers*</span>
							<span class="batsmanB_score">205</span>
						</span>
						<span class="fielding">
							<span class="subtitle">Bowler</span>
							<span class="bowlerA">Venkatesh</span>
							<span class="bowlerA_score">0/127 (24.2 overs)</span>
							<span class="bowlerA">Kahn</span>
							<span class="bowlerA_score">0/98 (20 overs)</span>
						</span>
					</span>
				</span>
			</div>
			</div>
			</div>
		<div id="pagefooter">

		</div>
		<div id="nextmessage" style="display:none;"></div>

    </body>

</html>